package com.wujie.hello.spring.cloud.config.client.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wujie
 * @version :
 * @title TestController
 * @Description TODO
 * @dateTime 2020/9/4 21:56
 * @Copyright 2020-2021
 */
@RestController
public class TestController {
    @Value("${wujie}")
    private String name;

    @RequestMapping(value = "/hi", method = RequestMethod.GET)
    public String hi() {
        return name;
    }
}
